From 7476f4788250ef281e09b449753c7ddc19239c64 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 30 May 2013 21:50:35 +0100 Subject: [PATCH] arm: Fix after 54353cae096c "xen/arm: check string format for early_printk" Signed-off-by: Ian Campbell --- xen/include/asm-arm/early_printk.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index 03ead23a0b..5f7c52956e 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -21,11 +21,12 @@ void early_panic(const char *fmt, ...) __attribute__((noreturn)) #else -static inline void early_printk(const char *fmt, ...) - __attribute__((format (printf, 1, 2))) +static inline __attribute__((format (printf, 1, 2))) void +early_printk(const char *fmt, ...) {} -static inline void __attribute__((noreturn)) early_panic(const char *fmt, ...) - __attribute__((format (printf, 1, 2))) + +static inline void __attribute__((noreturn)) +__attribute__((format (printf, 1, 2))) early_panic(const char *fmt, ...) {while(1);} #endif -- 2.30.2